Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

homepage.nsf and different browser languages - solved
~Tip Zekresaplopli 28.May.03 02:10 PM a Web browser
Domino Designer All Releases Windows 2000


here's my agent, that is launched via open-url in server document or directly in browser:

(all you need is to copy-paste this agent into your db and have the designated frameset prepared.)

sub initialize

Print "Content-Type:text/plain"
Print "Content-Type:text/html"

Print "<HTML>"

Dim session As New NotesSession
Dim doc As NotesDocument
Set doc = session.DocumentContext

Print "<H2>" + doc.Subject(0) + "</H2>"
Print "<H2>IP address is " + doc.Remote_Addr(0) + "</H2>"
Print "<H2>Sprache: " + doc.HTTP_Accept_language(0) + "</H2>"
Print "<H2>Browser: " + doc.HTTP_User_Agent(0) + "</H2>"
Print "<H2>HTTPS: " + doc.HTTPS(0) + "</H2>"
Print "<H2>Remote Host: " + doc.Remote_Host(0) + "</H2>"
Print "<H2>Remote Ident: " + doc.Remote_Ident(0) + "</H2>"
Print "<H2>Remote User: " + doc.Remote_User(0) + "</H2>"
Print "<H2>Server Name: " + doc.Server_Name(0) + "</H2>"
Print "<H2>Server Protocol: " + doc.Server_Protocol(0) + "</H2>"
Print "<H2>Server Port: " + doc.Server_Port(0) + "</H2>"
Print "<H2>Server Software: " + doc.Server_Software(0) + "</H2>"

lang = "en"
If Instr(1,doc.HTTP_Accept_Language(0),"de",5) <> 0 Then
lang = "de"
End If
Print "<H2>Sprache: "lang"</H2>"

Print "<HEAD>"

Select Case lang
Case "en"
Print "<META HTTP-EQUIV=""Refresh""
CONTENT=""10;URL=http://chzns510/chz_db/ID1/budget.nsf/Frameset.Start.en?Open"">"
Case "de"
Print "<META HTTP-EQUIV=""Refresh""
CONTENT=""10;URL=http://chzns510/chz_db/ID1/budget.nsf/Frameset.Start.de?Open"">"
End Select

Print "</HEAD>"
Print "</HTML>"
end sub




homepage.nsf and different browser ... (~Tip Zekresaplo... 27.May.03)
. . CGI variable (~August Desboos... 27.May.03)
. . CGI variable (~August Desboos... 27.May.03)
. . . . RE: CGI variable (~Tip Zekresaplo... 28.May.03)
. . . . . . Explination (~August Desboos... 28.May.03)
. . homepage.nsf and different browser ... (~Tip Zekresaplo... 28.May.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS